/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
//
const manualRouter = {
  path: '/manual',
  component: Layout,
  hidden:false,
  redirect: 'noRedirect',
  name: '手册',
  meta: {
    title: '手册',
    icon: 'documentation',
    roles: ['manual']
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/manual/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'documentation',
      component: () => import('@/views/manual/index'),
      name: '文档',
      meta: { title: '文档' },
      children:[
        {
          path: 'documentation',
          component: () => import('@/views/manual/documentation/documentation'),
          name: '文档',
          meta: { title: '文档' }
        },
        {
          path: 'documentation-add',
          component: () => import('@/views/manual/documentation/documentation-add'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        },
        {
          path: 'project-detail',
          component: () => import('@/views/manual/project/project-detail'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        }

      ]
    },
    {
      path: 'setting',
      component: () => import('@/views/manual/index'),
      name: '配置管理',
      meta: { title: '配置管理' },
      children:[
        {
          path: 'project',
          component: () => import('@/views/manual/project/project'),
          name: '渠道',
          meta: { title: '渠道' }
        },
        {
          path: 'project-add',
          component: () => import('@/views/manual/project/project-add'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        },
        {
          path: 'project-detail',
          component: () => import('@/views/manual/project/project-detail'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        },
        {
          path: 'catalogue',
          component: () => import('@/views/manual/catalogue/catalogue'),
          name: '渠道',
          meta: { title: '渠道' }
        },
        {
          path: 'catalogue-add',
          component: () => import('@/views/manual/catalogue/catalogue-add'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        },
        {
          path: 'catalogue-detail',
          component: () => import('@/views/manual/catalogue/catalogue-detail'),
          name: '新渠道',
          hidden: true,
          meta: {
            title: '新渠道'
          }
        }

      ]
    },
  ]
}

export default manualRouter
